//获取权限信息
export function getCurrentAuthority() {
    return ['admin'];
}

//权限校验
export function check(authority) {
    const current = getCurrentAuthority();
    return current.some(item => authority.includes(item))
}

//是否登录
export function isLogin(authority) {
    const current = getCurrentAuthority();
    return current && current[0] !== 'guest'
}